package com.nxn.core.service.impl;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nxn.core.dao.EntityDao;
import com.nxn.core.dao.PersonDao;
import com.nxn.core.model.Person;
import com.nxn.core.service.PersonService;

/**
 * Implement Services needed to edit and save
 * a Person object's state.  In this implementation
 * the Person object's state is stored in memory
 * @author Michael
 *
 */

@Service
public class PersonServiceImpl extends EntityManagerImpl<Person, Long> implements PersonService {
	
    @Autowired
	private PersonDao personDao;
	
	@Override
	public EntityDao<Person, Long> getSearchImpl() {
		return personDao;
	}
	
    @PostConstruct
    public void init(){

    }  
      
    @PreDestroy
    public void destroy(){

    }
}
